package com.mall.dubbo.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.model.domain.OmsOrder;
import com.mall.model.dto.OmsOrderDeliveryDto;
import com.mall.model.dto.OmsOrderDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author xyiaao
 * @description 针对表【oms_order(订单表)】的数据库操作Api
 * @createDate 2022-03-29 19:46:09
 */
public interface OmsOrderApi extends IService<OmsOrder> {

    Page<OmsOrder> pageByOrderDto(OmsOrderDto omsOrderDto);

    @Transactional
    void updateClose(Long userId, List<Long> ids, int status, String note);

    @Transactional
    void updateClose(Long userId, Long id, int status, String note);

    @Transactional
    void updateDelivery(Long userId, List<OmsOrderDeliveryDto> deliveryParamList, int status);

}
